// license-header java merge-point
/**
 * This is only generated once! It will never be overwritten.
 * You can (and have to!) safely modify it by hand.
 */
package com.myplans.remote;

import java.util.List;

import com.myplans.criteria.CategorySearchCriteria;
import com.myplans.model.PlanDao;
import com.myplans.vo.CategoryValue;
import com.myplans.vo.PlanValue;

/**
 * @see com.myplans.remote.PlanService
 */
public class PlanServiceImpl
    extends com.myplans.remote.PlanServiceBase
{

    /**
     * @see com.myplans.remote.PlanService#createPlan(com.myplans.vo.PlanValue)
     */
    protected  com.myplans.vo.PlanValue handleCreatePlan(com.myplans.vo.PlanValue planValue)
        throws java.lang.Exception
    {
        return (PlanValue) getPlanDao().create(PlanDao.TRANSFORM_PLANVALUE, 
        			getPlanDao().planValueToEntity(planValue));
    }

    /**
     * @see com.myplans.remote.PlanService#getPlans(com.myplans.criteria.PlanSearchCriteria)
     */
    protected  java.util.List<com.myplans.vo.PlanValue> handleGetPlans(com.myplans.criteria.PlanSearchCriteria searchCriteria)
        throws java.lang.Exception
    {
        return getPlanDao().getPlans(searchCriteria);
    }

	@Override
	protected List<CategoryValue> handleGetCategories(
			CategorySearchCriteria searchCriteria) throws Exception {
		return getCategoryDao().getCategories(searchCriteria);
	}

}